﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCS.SocialHttpApi.Models;

public class WMSRequestData
{
}

public record Response_WMS(ResponseHeader header, object body = null);
public record Request_WMS_task_release(RequestHeader header, WMSSendTaskData body);
public record Request_WMS_ReadStatus(RequestHeader header, WMSReadStatus body);
public record Request_WMS_Unusualhand(RequestHeader header, WMSUnusualhand body);
public record WMSReadStatus(string eqNo);
public record WMSUnusualhand(string wmsTaskId, string taskType);

public class WMSSendTaskData
{
    public string WmsTaskId { get; set; }
    public string TrayCode { get; set; }
    public int TrayType { get; set; }
    public int TaskType { get; set; } // 1：出入库， 2：叠盘（原料库）
    public int Level { get; set; }
    public string From { get; set; }
    public string To { get; set; }
    public string? MaterialNo { get; set; }
    public string? Diameter { get; set; }
    public string? Width { get; set; }
    public int Direction { get; set; } //0：正向，1：负向（带料库需要）
}